package com.project.wxServer.constant;

import com.project.common.utils.file.FileUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName; WxCofing
 * @Author; kang
 * @Date; 2021/4/23　9;48
 * @Description：
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.tx")
public class TXConfig {

    /**
     * 车牌信息保留时间天数
     */
    private int day;

    /**
     * 基础路径
     */
    private String url;

    /**
     * pda版本路径
     */
    private String pdaPath;

    /**
     * 车牌信息存贮文件地址
     */
    private String fileName;

    /**
     * secretEnabled
     */
    private boolean secretEnabled;

    /**
     * confidence
     */
    private int confidence;

    /**
     * secretId
     */
    private String secretId;

    /**
     * secretKey
     */
    private String secretKey;

    /**
     * sdkAppID
     */
    private String sdkAppID;

    /**
     * appKey
     */
    private String appKey;

    /**
     * messageUrl
     */
    private String messageUrl;

    public String getProjectFilePath() {
        return FileUtils.getProjectPath() + this.fileName;
    }

    public String getProjectPdaPath() {
        return FileUtils.getProjectPath() + this.pdaPath;
    }
}
